<?php
/**
 * Created By PhpStorm
 * User: 星洛尘--Stara_Rs
 * Date: 2019/10/9
 * Time: 20:22
 */


namespace app\api\controller\v1;


use app\api\validate\IDMustBePostiveInt;

class Banner
{

    /**
     * 获取指定id的banner信息
     * @url /banner/:id
     * @http GET
     * @id 关联banner的id号
     */
    public function getBanner($id)
    {
        (new IDMustBePostiveInt())->goCheck();
//        $data = [
//            'id'=> $id
//        ];
//
////        $validate = new Validate([
////            'name'=> 'require|max:10',
////            'email'=> 'email',
////        ]);
//
//        $validate = new IDMustBePostiveInt();
//
//        $result = $validate->batch()->check($data);
//        $err = $validate->getError();
//
//        var_dump($err);
    }
}